<?php
	//$tribe_id
		$subject_db='phome_jat_tribe_subject';
		$p=$_REQUEST['p'];
		$is_good=$_REQUEST['gd'];
		$whArr=array('tribe_id'=>$tribe_id);
		if($is_good){
			$whArr['is_good']='1';
		}

		$nums=DbTouch($subject_db,$whArr,"count(*) as total");
		$page=new page_obj($p,array("itemnum"=>10,"border"=>4,"row_count"=>$nums['total']));
		$limit_str=$page->get_limit_str();
		$subject_list=DbTouchAll($subject_db,$whArr,'*',' order by  is_top desc,time desc  '.$limit_str);
		$page_list=$page->build_html_link("p");
?>
<style>
	.ipt_box{width:100%;}
	.big-box{height:120px;}
	.current_subject{color:#eee;background:#;}
</style>
<ol id="dh">
	<li><a href="<?=$public_r[newsurl]?>tribe/detail/?id=<?=$tribe_id?>">部落首页</a></li>
	<li><a href="<?=$public_r[newsurl]?>tribe/detail/?id=<?=$tribe_id?>&m=subject">部落讨论</a></li>
	<li><a href="<?=$public_r[newsurl]?>tribe/detail/?id=<?=$tribe_id?>&m=act">部落活动</a></li>
	<li><a href="<?=$public_r[newsurl]?>tribe/detail/?id=<?=$tribe_id?>&m=pho" class="change">部落相册</a></li>
</ol>
 <span class="clear"></span> 
<div >
		<h3>
			<span><a href="./?id=<?=$tribe_id?>&m=pho">查看全部</a></span>
			<span><a href="./?id=<?=$tribe_id?>&m=u">上传照片</a></span>
			<span><a href="./?id=<?=$tribe_id?>&m=abm">创建新相册</a></span>
			创建部落相册
		</h3>
		<div id="Topic">
			<form action='../../e/o/' method='post'>
				<input type='hidden' name='enews' value='add_tribe_abm' />	
				<input type='hidden' name='tid' value='<?=$tribe_id?>' />
				<table >
					<tr><th>相册名称；</th><td><input type='input' name='title' style='width:100%'/></td></tr>
					<tr><th>相册描述：</th><td><textarea name='content'  style='width:100%;height:80px;'></textarea></td></tr>
					<tr><td colspan='2'><input type='submit' value='创建相册'/></td></tr>
				</table>
			</form>
		</div>
	  <span class="clear"></span>
</div>
<!-- photo结束 -->